package cc.linker.steplink.crm.merchanth5.pojo;

import com.mongodb.util.JSON;

import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.List;

public class MallGoodsPo implements Serializable {

    private Long goodsId;//	商品ID
    private String amount;//	售价(元）
    private Long amountCent;//	售价(分)
    private List<CoverPo> goodsBanner;//	商品banner图
    private String goodsContent;//	商品详情
    private Integer goodsCount;//	总库存
    private String goodsCover;//	商品封面
    private Double goodsFreight;//	运费
    private Long goodsFreightCent;//	运费
    private String goodsName;//	商品名称

    private Integer goodsStatus;//	商品状态
    private Integer isDelete;//	商品是否删除

    private Integer dongGoodsStatus;//	商品状态
    private String saler;//	商品状态

    private String originalCost;// 原价

    //	商品预览，用于idp客服预览
    private String goodsPreview;

    private String promotion;// 是否反润

    private String banned;// 是否封禁

    private String belongId;

    private String videoContent;
    private String videoCover;
    private String videoResId;
    private String shareTitle;
    private String shareInfo;
    private Integer quota;
    private Integer quotaCycle;
    private Integer quotaNum;
    private Integer quotaDay;
    private Long mallsGoodsId;
    private String memberAmount;
    private Integer isSeckill;
    private Integer seckillStatus;
    private Long seckillSecond;
    private Long seckillAllSecond;

    public Integer getQuota() {
        return quota;
    }

    public Long getMallsGoodsId() {
        return mallsGoodsId;
    }

    public void setMallsGoodsId(Long mallsGoodsId) {
        this.mallsGoodsId = mallsGoodsId;
    }

    public void setQuota(Integer quota) {
        this.quota = quota;
    }

    public Integer getQuotaCycle() {
        return quotaCycle;
    }

    public void setQuotaCycle(Integer quotaCycle) {
        this.quotaCycle = quotaCycle;
    }

    public Integer getQuotaNum() {
        return quotaNum;
    }

    public void setQuotaNum(Integer quotaNum) {
        this.quotaNum = quotaNum;
    }

    public Integer getQuotaDay() {
        return quotaDay;
    }

    public void setQuotaDay(Integer quotaDay) {
        this.quotaDay = quotaDay;
    }

    public String getPromotion() {
        return promotion;
    }

    public void setPromotion(String promotion) {
        this.promotion = promotion;
    }

    public String getBanned() {
        return banned;
    }

    public void setBanned(String banned) {
        this.banned = banned;
    }

    public String getBelongId() {
        return belongId;
    }

    public void setBelongId(String belongId) {
        this.belongId = belongId;
    }

    public String getVideoContent() {
        return videoContent;
    }

    public void setVideoContent(String videoContent) {
        this.videoContent = videoContent;
    }

    public String getVideoCover() {
        return videoCover;
    }

    public void setVideoCover(String videoCover) {
        this.videoCover = videoCover;
    }

    public String getVideoResId() {
        return videoResId;
    }

    public void setVideoResId(String videoResId) {
        this.videoResId = videoResId;
    }

    public String getShareTitle() {
        return shareTitle;
    }

    public void setShareTitle(String shareTitle) {
        this.shareTitle = shareTitle;
    }

    public String getShareInfo() {
        return shareInfo;
    }

    public void setShareInfo(String shareInfo) {
        this.shareInfo = shareInfo;
    }

    public String getOriginalCost() {
        return originalCost;
    }

    public void setOriginalCost(String originalCost) {
        this.originalCost = originalCost;
    }

    public String getSaler() {
        return saler;
    }

    public void setSaler(String saler) {
        this.saler = saler;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public List<CoverPo> getGoodsBanner() {
        return goodsBanner;
    }

    public void setGoodsBanner(String goodsBanner) {
        this.goodsBanner = (List<CoverPo>) JSON.parse(goodsBanner);
    }

    public String getGoodsContent() {
        return goodsContent;
    }

    public void setGoodsContent(String goodsContent) {
        this.goodsContent = goodsContent;
    }

    public Integer getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
    }

    public String getGoodsCover() {
        return goodsCover;
    }

    public void setGoodsCover(String goodsCover) {
        this.goodsCover = goodsCover;
    }

    public Double getGoodsFreight() {
        return goodsFreight;
    }

    public void setGoodsFreight(Double goodsFreight) {
        this.goodsFreight = goodsFreight;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getGoodsStatus() {
        return goodsStatus;
    }

    public void setGoodsStatus(Integer goodsStatus) {
        this.goodsStatus = goodsStatus;
    }

    public Long getAmountCent() {
        return amountCent;
    }

    public void setAmountCent(Long amountCent) {
//        DecimalFormat df = new DecimalFormat("#.00");
//        //分转元
//        double s = ((double) amountCent / 100);
//        this.amount = Double.valueOf(df.format(s));
        this.amountCent = amountCent;
    }

    public Long getGoodsFreightCent() {
        return goodsFreightCent;
    }

    public void setGoodsFreightCent(Long goodsFreightCent) {
        DecimalFormat df = new DecimalFormat("#.00");
        //分转元
        double s = ((double) goodsFreightCent / 100);
        this.goodsFreight = Double.valueOf(df.format(s));
        this.goodsFreightCent = goodsFreightCent;
    }

    public Integer getDongGoodsStatus() {
        return dongGoodsStatus;
    }

    public void setDongGoodsStatus(Integer dongGoodsStatus) {
        this.dongGoodsStatus = dongGoodsStatus;
    }

    public String getGoodsPreview() {
        return goodsPreview;
    }

    public void setGoodsPreview(String goodsPreview) {
        this.goodsPreview = goodsPreview;
    }

    public String getMemberAmount() {
        return memberAmount;
    }

    public void setMemberAmount(String memberAmount) {
        this.memberAmount = memberAmount;
    }

    public Integer getIsSeckill() {
        return isSeckill;
    }

    public void setIsSeckill(Integer isSeckill) {
        this.isSeckill = isSeckill;
    }

    public Integer getSeckillStatus() {
        return seckillStatus;
    }

    public void setSeckillStatus(Integer seckillStatus) {
        this.seckillStatus = seckillStatus;
    }

    public Long getSeckillSecond() {
        return seckillSecond;
    }

    public void setSeckillSecond(Long seckillSecond) {
        this.seckillSecond = seckillSecond;
    }

    public Long getSeckillAllSecond() {
        return seckillAllSecond;
    }

    public void setSeckillAllSecond(Long seckillAllSecond) {
        this.seckillAllSecond = seckillAllSecond;
    }
}
